package com.mate.cloud.order.handler;

import com.mate.cloud.order.domain.OrderDTO;
import com.mate.cloud.core.response.BaseResponse;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Service;

/**
 * 订单提交-优惠券计算处理器
 *
 * @author: MI
 * @email: 448341911@qq.com
 * @createTime: 2025/1/27 14:54
 * @updateUser: MI
 * @updateTime: 2025/1/27 14:54
 * @updateRemark: 修改内容
 * @version: v1.0
 */
@Service
@Order(200)
public class CouponOrderChainHandler extends AbstractOrderChainHandler {
    /**
     * 执行过滤方法
     *
     * @author: MI
     * @param: OrderDTO
     * @return:
     * @exception:
     * @createTime:
     */
    @Override
    protected BaseResponse doFilter(OrderDTO orderDTO) {
        System.out.println("优惠券处理");
        return super.doNextHandler(orderDTO, new BaseResponse());
    }
}
